package cn.wgx.modules.sys.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class SysLogExample {
    /**
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    protected String orderByClause;

    /**
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    protected boolean distinct;

    /**
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    protected List<Criteria> oredCriteria;

    /**
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    public SysLogExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    /**
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    /**
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    public String getOrderByClause() {
        return orderByClause;
    }

    /**
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    /**
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    public boolean isDistinct() {
        return distinct;
    }

    /**
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    /**
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    /**
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    /**
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    /**
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    /**
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    /**
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andLog_idIsNull() {
            addCriterion("t.log_id is null");
            return (Criteria) this;
        }

        public Criteria andLog_idIsNotNull() {
            addCriterion("t.log_id is not null");
            return (Criteria) this;
        }

        public Criteria andLog_idEqualTo(Integer value) {
            addCriterion("t.log_id =", value, "log_id");
            return (Criteria) this;
        }

        public Criteria andLog_idNotEqualTo(Integer value) {
            addCriterion("t.log_id <>", value, "log_id");
            return (Criteria) this;
        }

        public Criteria andLog_idGreaterThan(Integer value) {
            addCriterion("t.log_id >", value, "log_id");
            return (Criteria) this;
        }

        public Criteria andLog_idGreaterThanOrEqualTo(Integer value) {
            addCriterion("t.log_id >=", value, "log_id");
            return (Criteria) this;
        }

        public Criteria andLog_idLessThan(Integer value) {
            addCriterion("t.log_id <", value, "log_id");
            return (Criteria) this;
        }

        public Criteria andLog_idLessThanOrEqualTo(Integer value) {
            addCriterion("t.log_id <=", value, "log_id");
            return (Criteria) this;
        }

        public Criteria andLog_idIn(List<Integer> values) {
            addCriterion("t.log_id in", values, "log_id");
            return (Criteria) this;
        }

        public Criteria andLog_idNotIn(List<Integer> values) {
            addCriterion("t.log_id not in", values, "log_id");
            return (Criteria) this;
        }

        public Criteria andLog_idBetween(Integer value1, Integer value2) {
            addCriterion("t.log_id between", value1, value2, "log_id");
            return (Criteria) this;
        }

        public Criteria andLog_idNotBetween(Integer value1, Integer value2) {
            addCriterion("t.log_id not between", value1, value2, "log_id");
            return (Criteria) this;
        }

        public Criteria andTypeIsNull() {
            addCriterion("t.type is null");
            return (Criteria) this;
        }

        public Criteria andTypeIsNotNull() {
            addCriterion("t.type is not null");
            return (Criteria) this;
        }

        public Criteria andTypeEqualTo(String value) {
            addCriterion("t.type =", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotEqualTo(String value) {
            addCriterion("t.type <>", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThan(String value) {
            addCriterion("t.type >", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThanOrEqualTo(String value) {
            addCriterion("t.type >=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThan(String value) {
            addCriterion("t.type <", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThanOrEqualTo(String value) {
            addCriterion("t.type <=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLike(String value) {
            addCriterion("t.type like", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotLike(String value) {
            addCriterion("t.type not like", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeIn(List<String> values) {
            addCriterion("t.type in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotIn(List<String> values) {
            addCriterion("t.type not in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeBetween(String value1, String value2) {
            addCriterion("t.type between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotBetween(String value1, String value2) {
            addCriterion("t.type not between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andTitleIsNull() {
            addCriterion("t.title is null");
            return (Criteria) this;
        }

        public Criteria andTitleIsNotNull() {
            addCriterion("t.title is not null");
            return (Criteria) this;
        }

        public Criteria andTitleEqualTo(String value) {
            addCriterion("t.title =", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleNotEqualTo(String value) {
            addCriterion("t.title <>", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleGreaterThan(String value) {
            addCriterion("t.title >", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleGreaterThanOrEqualTo(String value) {
            addCriterion("t.title >=", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleLessThan(String value) {
            addCriterion("t.title <", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleLessThanOrEqualTo(String value) {
            addCriterion("t.title <=", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleLike(String value) {
            addCriterion("t.title like", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleNotLike(String value) {
            addCriterion("t.title not like", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleIn(List<String> values) {
            addCriterion("t.title in", values, "title");
            return (Criteria) this;
        }

        public Criteria andTitleNotIn(List<String> values) {
            addCriterion("t.title not in", values, "title");
            return (Criteria) this;
        }

        public Criteria andTitleBetween(String value1, String value2) {
            addCriterion("t.title between", value1, value2, "title");
            return (Criteria) this;
        }

        public Criteria andTitleNotBetween(String value1, String value2) {
            addCriterion("t.title not between", value1, value2, "title");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdIsNull() {
            addCriterion("t.createUserId is null");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdIsNotNull() {
            addCriterion("t.createUserId is not null");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdEqualTo(Integer value) {
            addCriterion("t.createUserId =", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdNotEqualTo(Integer value) {
            addCriterion("t.createUserId <>", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdGreaterThan(Integer value) {
            addCriterion("t.createUserId >", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("t.createUserId >=", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdLessThan(Integer value) {
            addCriterion("t.createUserId <", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("t.createUserId <=", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdIn(List<Integer> values) {
            addCriterion("t.createUserId in", values, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdNotIn(List<Integer> values) {
            addCriterion("t.createUserId not in", values, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdBetween(Integer value1, Integer value2) {
            addCriterion("t.createUserId between", value1, value2, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("t.createUserId not between", value1, value2, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNull() {
            addCriterion("t.createDate is null");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNotNull() {
            addCriterion("t.createDate is not null");
            return (Criteria) this;
        }

        public Criteria andCreateDateEqualTo(Date value) {
            addCriterion("t.createDate =", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotEqualTo(Date value) {
            addCriterion("t.createDate <>", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThan(Date value) {
            addCriterion("t.createDate >", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThanOrEqualTo(Date value) {
            addCriterion("t.createDate >=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThan(Date value) {
            addCriterion("t.createDate <", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThanOrEqualTo(Date value) {
            addCriterion("t.createDate <=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateIn(List<Date> values) {
            addCriterion("t.createDate in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotIn(List<Date> values) {
            addCriterion("t.createDate not in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateBetween(Date value1, Date value2) {
            addCriterion("t.createDate between", value1, value2, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotBetween(Date value1, Date value2) {
            addCriterion("t.createDate not between", value1, value2, "createDate");
            return (Criteria) this;
        }

        public Criteria andRemote_hostIsNull() {
            addCriterion("t.remote_host is null");
            return (Criteria) this;
        }

        public Criteria andRemote_hostIsNotNull() {
            addCriterion("t.remote_host is not null");
            return (Criteria) this;
        }

        public Criteria andRemote_hostEqualTo(String value) {
            addCriterion("t.remote_host =", value, "remote_host");
            return (Criteria) this;
        }

        public Criteria andRemote_hostNotEqualTo(String value) {
            addCriterion("t.remote_host <>", value, "remote_host");
            return (Criteria) this;
        }

        public Criteria andRemote_hostGreaterThan(String value) {
            addCriterion("t.remote_host >", value, "remote_host");
            return (Criteria) this;
        }

        public Criteria andRemote_hostGreaterThanOrEqualTo(String value) {
            addCriterion("t.remote_host >=", value, "remote_host");
            return (Criteria) this;
        }

        public Criteria andRemote_hostLessThan(String value) {
            addCriterion("t.remote_host <", value, "remote_host");
            return (Criteria) this;
        }

        public Criteria andRemote_hostLessThanOrEqualTo(String value) {
            addCriterion("t.remote_host <=", value, "remote_host");
            return (Criteria) this;
        }

        public Criteria andRemote_hostLike(String value) {
            addCriterion("t.remote_host like", value, "remote_host");
            return (Criteria) this;
        }

        public Criteria andRemote_hostNotLike(String value) {
            addCriterion("t.remote_host not like", value, "remote_host");
            return (Criteria) this;
        }

        public Criteria andRemote_hostIn(List<String> values) {
            addCriterion("t.remote_host in", values, "remote_host");
            return (Criteria) this;
        }

        public Criteria andRemote_hostNotIn(List<String> values) {
            addCriterion("t.remote_host not in", values, "remote_host");
            return (Criteria) this;
        }

        public Criteria andRemote_hostBetween(String value1, String value2) {
            addCriterion("t.remote_host between", value1, value2, "remote_host");
            return (Criteria) this;
        }

        public Criteria andRemote_hostNotBetween(String value1, String value2) {
            addCriterion("t.remote_host not between", value1, value2, "remote_host");
            return (Criteria) this;
        }

        public Criteria andUser_agentIsNull() {
            addCriterion("t.user_agent is null");
            return (Criteria) this;
        }

        public Criteria andUser_agentIsNotNull() {
            addCriterion("t.user_agent is not null");
            return (Criteria) this;
        }

        public Criteria andUser_agentEqualTo(String value) {
            addCriterion("t.user_agent =", value, "user_agent");
            return (Criteria) this;
        }

        public Criteria andUser_agentNotEqualTo(String value) {
            addCriterion("t.user_agent <>", value, "user_agent");
            return (Criteria) this;
        }

        public Criteria andUser_agentGreaterThan(String value) {
            addCriterion("t.user_agent >", value, "user_agent");
            return (Criteria) this;
        }

        public Criteria andUser_agentGreaterThanOrEqualTo(String value) {
            addCriterion("t.user_agent >=", value, "user_agent");
            return (Criteria) this;
        }

        public Criteria andUser_agentLessThan(String value) {
            addCriterion("t.user_agent <", value, "user_agent");
            return (Criteria) this;
        }

        public Criteria andUser_agentLessThanOrEqualTo(String value) {
            addCriterion("t.user_agent <=", value, "user_agent");
            return (Criteria) this;
        }

        public Criteria andUser_agentLike(String value) {
            addCriterion("t.user_agent like", value, "user_agent");
            return (Criteria) this;
        }

        public Criteria andUser_agentNotLike(String value) {
            addCriterion("t.user_agent not like", value, "user_agent");
            return (Criteria) this;
        }

        public Criteria andUser_agentIn(List<String> values) {
            addCriterion("t.user_agent in", values, "user_agent");
            return (Criteria) this;
        }

        public Criteria andUser_agentNotIn(List<String> values) {
            addCriterion("t.user_agent not in", values, "user_agent");
            return (Criteria) this;
        }

        public Criteria andUser_agentBetween(String value1, String value2) {
            addCriterion("t.user_agent between", value1, value2, "user_agent");
            return (Criteria) this;
        }

        public Criteria andUser_agentNotBetween(String value1, String value2) {
            addCriterion("t.user_agent not between", value1, value2, "user_agent");
            return (Criteria) this;
        }

        public Criteria andRequest_uriIsNull() {
            addCriterion("t.request_uri is null");
            return (Criteria) this;
        }

        public Criteria andRequest_uriIsNotNull() {
            addCriterion("t.request_uri is not null");
            return (Criteria) this;
        }

        public Criteria andRequest_uriEqualTo(String value) {
            addCriterion("t.request_uri =", value, "request_uri");
            return (Criteria) this;
        }

        public Criteria andRequest_uriNotEqualTo(String value) {
            addCriterion("t.request_uri <>", value, "request_uri");
            return (Criteria) this;
        }

        public Criteria andRequest_uriGreaterThan(String value) {
            addCriterion("t.request_uri >", value, "request_uri");
            return (Criteria) this;
        }

        public Criteria andRequest_uriGreaterThanOrEqualTo(String value) {
            addCriterion("t.request_uri >=", value, "request_uri");
            return (Criteria) this;
        }

        public Criteria andRequest_uriLessThan(String value) {
            addCriterion("t.request_uri <", value, "request_uri");
            return (Criteria) this;
        }

        public Criteria andRequest_uriLessThanOrEqualTo(String value) {
            addCriterion("t.request_uri <=", value, "request_uri");
            return (Criteria) this;
        }

        public Criteria andRequest_uriLike(String value) {
            addCriterion("t.request_uri like", value, "request_uri");
            return (Criteria) this;
        }

        public Criteria andRequest_uriNotLike(String value) {
            addCriterion("t.request_uri not like", value, "request_uri");
            return (Criteria) this;
        }

        public Criteria andRequest_uriIn(List<String> values) {
            addCriterion("t.request_uri in", values, "request_uri");
            return (Criteria) this;
        }

        public Criteria andRequest_uriNotIn(List<String> values) {
            addCriterion("t.request_uri not in", values, "request_uri");
            return (Criteria) this;
        }

        public Criteria andRequest_uriBetween(String value1, String value2) {
            addCriterion("t.request_uri between", value1, value2, "request_uri");
            return (Criteria) this;
        }

        public Criteria andRequest_uriNotBetween(String value1, String value2) {
            addCriterion("t.request_uri not between", value1, value2, "request_uri");
            return (Criteria) this;
        }

        public Criteria andMethodIsNull() {
            addCriterion("t.method is null");
            return (Criteria) this;
        }

        public Criteria andMethodIsNotNull() {
            addCriterion("t.method is not null");
            return (Criteria) this;
        }

        public Criteria andMethodEqualTo(String value) {
            addCriterion("t.method =", value, "method");
            return (Criteria) this;
        }

        public Criteria andMethodNotEqualTo(String value) {
            addCriterion("t.method <>", value, "method");
            return (Criteria) this;
        }

        public Criteria andMethodGreaterThan(String value) {
            addCriterion("t.method >", value, "method");
            return (Criteria) this;
        }

        public Criteria andMethodGreaterThanOrEqualTo(String value) {
            addCriterion("t.method >=", value, "method");
            return (Criteria) this;
        }

        public Criteria andMethodLessThan(String value) {
            addCriterion("t.method <", value, "method");
            return (Criteria) this;
        }

        public Criteria andMethodLessThanOrEqualTo(String value) {
            addCriterion("t.method <=", value, "method");
            return (Criteria) this;
        }

        public Criteria andMethodLike(String value) {
            addCriterion("t.method like", value, "method");
            return (Criteria) this;
        }

        public Criteria andMethodNotLike(String value) {
            addCriterion("t.method not like", value, "method");
            return (Criteria) this;
        }

        public Criteria andMethodIn(List<String> values) {
            addCriterion("t.method in", values, "method");
            return (Criteria) this;
        }

        public Criteria andMethodNotIn(List<String> values) {
            addCriterion("t.method not in", values, "method");
            return (Criteria) this;
        }

        public Criteria andMethodBetween(String value1, String value2) {
            addCriterion("t.method between", value1, value2, "method");
            return (Criteria) this;
        }

        public Criteria andMethodNotBetween(String value1, String value2) {
            addCriterion("t.method not between", value1, value2, "method");
            return (Criteria) this;
        }

        public Criteria andTypeLikeInsensitive(String value) {
            addCriterion("upper(t.type) like", value.toUpperCase(), "type");
            return (Criteria) this;
        }

        public Criteria andTitleLikeInsensitive(String value) {
            addCriterion("upper(t.title) like", value.toUpperCase(), "title");
            return (Criteria) this;
        }

        public Criteria andRemote_hostLikeInsensitive(String value) {
            addCriterion("upper(t.remote_host) like", value.toUpperCase(), "remote_host");
            return (Criteria) this;
        }

        public Criteria andUser_agentLikeInsensitive(String value) {
            addCriterion("upper(t.user_agent) like", value.toUpperCase(), "user_agent");
            return (Criteria) this;
        }

        public Criteria andRequest_uriLikeInsensitive(String value) {
            addCriterion("upper(t.request_uri) like", value.toUpperCase(), "request_uri");
            return (Criteria) this;
        }

        public Criteria andMethodLikeInsensitive(String value) {
            addCriterion("upper(t.method) like", value.toUpperCase(), "method");
            return (Criteria) this;
        }
    }

    /**
     *
     * @mbg.generated do_not_delete_during_merge Tue May 28 17:20:33 CST 2019
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    /**
     *
     * @mbg.generated Tue May 28 17:20:33 CST 2019
     */
    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}